﻿using EnsembleGame.Form;
using Ensemble_Windows.Core;

namespace EnsembleGame
{
    /// <summary>
    ///     主逻辑入口点
    /// </summary>
    public class MainGame : Game
    {
        /// <summary>
        ///     初始化游戏
        /// </summary>
        /// <param name="configuration">配置</param>
        protected override void Initialize(Configuration configuration)
        {
            base.Initialize(configuration);
            // 新增lua接口 config 游戏配置
            // base.Lua_state["config"] = configuration;
            // LuaHelper.LoadScript<Configuration>(Mod.LuaInitPath, base.Lua_state, configuration);

            // ReSharper disable once ObjectCreationAsStatement
            new Login(this);
        }
    }
}